package com.example.mianshi.mianshiv2;

import java.io.File;

public class TxtWork  extends DoWorkTemplate {
    public static final String FILE_PATH = "D://test";
    public static final String FILE_SUFFIX = "txt"; //通过需求获取不同的格式。可以定义为枚举

    @Override
    protected File getFilePath() {
        return new File(FILE_PATH);
    }

    @Override
    protected String getFileSuffix() {
        return FILE_SUFFIX;
    }

    public static void main(String[] args) {
        //程序入口
        new TxtWork().doWork();
    }
}
